@include('admin.public.head')
@include('admin.public.pop')

<style type="text/css">

    .inner_btn {
        background: #19a97b;
        color: white;
        padding: 5px 8px;
        border-radius: 2px;
    }

</style>

<div class="ibox-title">
    <h5>课程管理</h5>
</div>

<div class="ibox-content">
    <table class="table table-bordered">
        <thead>
        <tr>
            <th>上课季度</th>
            <th>課程名稱</th>
            <th>老師名稱</th>
            <th>課室編號</th>
            <th>上課時間</th>
            <th>上課時長(小時)</th>
            <th>可容納上課人數</th>
            <th>門店名稱</th>
        </tr>
        </thead>

        <tbody>
        @foreach ($result as $v)
            <tr>
                <td>{{$v->class_quarterly->name??''}}</td>
                <td>{{$v->class_base->class_name??''}}</td>
                <td>{{$v->teacher->teacher_name??''}}</td>
                <td>{{$v->classsroom->numbering??''}}</td>
                <td>
                    周期：{{$v->class_week}}</br>
                    上課時間：{{$v->class_time}}</br>
                </td>
                <td>{{$v->class_duration}}</td>
                <td>{{$v->class_number_people}}</td>
                <td>{{$v->store->store_name}}</td>
            </tr>
        @endforeach
        </tbody>
        {{ $result->appends(Request::except('page'))->links() }}
    </table>
    {{ $result->appends(Request::except('page'))->links() }}
</div>
<script>

</script>
